#!/bin/bash

# 激活虚拟环境
source /opt/medical_qa/venv/bin/activate

# 启动gunicorn服务
gunicorn app:app \
    --bind 0.0.0.0:5000 \
    --workers 4 \
    --timeout 120 \
    --access-logfile /var/log/medical_qa/access.log \
    --error-logfile /var/log/medical_qa/error.log \
    --daemon 